package cn.wolfcode.luowowo.controller;

import cn.wolfcode.luowowo.util.JsonResult;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @GetMapping("/test1")
    @ApiResponses({
            @ApiResponse(code=200,message="用户注册成功")
    })
    public Object test1(){
        return JsonResult.success();
    }

    @GetMapping("/test2")
    public Object test2(){
        return JsonResult.success("jinglail");
    }

    @GetMapping("/test3")
    public Object test3(){
        return JsonResult.success();
    }
}
